#pragma once

#include "iplayercontrol.h"

class KeyboardPlayerControl : public IPlayerControl
{
public:
    KeyboardPlayerControl();
    ~KeyboardPlayerControl();

    void process(IWorld *world) const;

    void accept(QKeyEvent *event, bool isPressEvent);

private:
    bool _leftPressed;
    bool _rightPressed;
    bool _stopPressed;
    bool _forwardPressed;
    bool _backPressed;
};
